package com.hnkywl.jip.utils;

import org.hibernate.Hibernate;
import org.hibernate.dialect.SQLServerDialect;

import java.sql.Types;

/**
 * Created with IntelliJ IDEA.
 * User: jerry
 * Date: 13-2-26
 * Time: 下午5:35
 * To change this template use File | Settings | File Templates.
 */
public class SqlServer2005Dialect extends SQLServerDialect {
    public SqlServer2005Dialect() {
        super();
        registerHibernateType(-9, "string");

        registerHibernateType(Types.CHAR, Hibernate.STRING.getName());
        registerHibernateType(Types.NVARCHAR, Hibernate.STRING.getName());
        registerHibernateType(Types.LONGNVARCHAR, Hibernate.STRING.getName());
        registerHibernateType(Types.DECIMAL, Hibernate.DOUBLE.getName());


    }
}
